<?php
namespace com\test\actions;

import('wogu2/http/header/SetCookie');

use wogu2\mvc\action\Action;
use wogu2\http\header\SetCookie;

class Index extends Action
{
    public function execute() {
        $this->set('username', 'test1');
        $this->addHeader(new SetCookie('co', '', 1));

        return self::SUCCESS;
    }
}